package m.jclecai.com.adapter.base;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


/**
 * Created by zed on 2018/3/19.
 */

public abstract class RyAdapter<VH extends RyHolder> extends RecyclerView.Adapter<VH> {

    protected View inflate(Context mContext,int resId, ViewGroup parent,boolean attachToRoot) {
        return LayoutInflater.from(mContext).inflate(resId, parent, attachToRoot);
    }
}
